Using Abort Transaction Action |
|
This task applies while defining the action of a rule or a decision table.
- In the Rule Definition pane, right-click then and select Actions > Abort Transaction.
- Type the name of the action in the Action Name field. For more information on naming the action, refer to Guidelines for Naming Rule Actions.
- Type the abort message in the text box below the Action Name field. The following table describes the types of abort messages:
Option
Description
Static Abort Messages
Static abort messages are strings delimited by double quotes.For example ("Error Occurred ").
Dynamic abort messages
Dynamic abort messages allow you to include values of runtime variables in the abort message. In the above example, the message is delimited with double-quotes (" "), and the variables should be concatenated with the abort message. For Example:concat("Error occurred due to Invalid OrderId:", Order/OrderId)
- Click Add. The type of action along with the name is displayed after then in the Rule Definition pane.
Note: To add more Abort actions, repeat the task.